Conversation
{“test1”: 0, “test2”: false} EncodeToString
need to
test1=0&test2=false
not
test1=&test2=
|
using |
bugfix: avoid endless loop
|
@godblesshugh, regarding the first issue, take a look at this branch I just pushed: https://github.com/ajg/form/tree/encode-to-with#zero-values; that ought to solve your problem (missing zero values) more conveniently than using |
|
Relevant PR: #16 |
|
@ajg yes, |
|
@godblesshugh, regarding the tag issue: I'm not sure it's a good idea to automatically fall back to a |
|
@ajg that will do, for my case, content in |
test := map[string]interface{}{“test1”: 0, “test2”: false,}
EncodeToString needs to be like this:
test1=0&test2=false
not:
test1=&test2=